package edu.tju.belongings;

import java.sql.SQLException;

import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.younker.waf.db.IBatisConfig;


public class IbatisBelongingsKindDao implements IBelongingsKindDao{
	protected SqlMapClient sqlMap = IBatisConfig.getSqlMapInstance();

	

	

	public void deleteBelongingsKind(long id) throws SQLException {
		sqlMap.delete("deleteBelongings", id);
		
	}


	public List<BelongingsKind> getBelongingsKindAnd(
			BelongingsKind belongingsKind) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public BelongingsKind getBelongingsKindById(long id) throws SQLException {
		
		return (BelongingsKind) sqlMap.queryForObject("getBelongingsKindById", id);
	}

	
	public List<BelongingsKind> getBelongingsKindOr(
			BelongingsKind belongingsKind) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public Long insertBelongingsKind(BelongingsKind belongingsKind)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public int updateBelongingsKind(BelongingsKind belongingsKind)
			throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
